import request from '@/utils/request'

// 查询milkCard列表
export function listmilkCard (query) {
  return request({
    url: '/system/milkCard/list',
    method: 'get',
    params: query
  })
}

// 查询milkCard列表
export function getCardOp () {
  return request({
    url: '/system/milkCard/getCardOp',
    method: 'get',
  })
}

// 查询milkCard详细
export function getmilkCard (id) {
  return request({
    url: '/system/milkCard/' + id,
    method: 'get'
  })
}

// 新增milkCard
export function addmilkCard (data) {
  return request({
    url: '/system/milkCard',
    method: 'post',
    data: data
  })
}

// 修改milkCard
export function updatemilkCard (data) {
  return request({
    url: '/system/milkCard',
    method: 'put',
    data: data
  })
}

// 删除milkCard
export function delmilkCard (id) {
  return request({
    url: '/system/milkCard/' + id,
    method: 'delete'
  })
}
